import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  // 非根路径
  // history: createWebHistory('/test/'),
  history: createWebHistory(),
  routes: [
    {
      // 项目列表
      path: "/",
      name: "list",
      meta: {
        pageName: "列表",
      },
      component: () => import("@/views/list/index.vue"),
    },
    {
      // 设计器
      path: "/design",
      name: "design",
      meta: {
        pageName: "设计器",
      },
      component: () => import("@/views/design/index.vue"),
    },
    {
      path: "/routerTest",
      name: "routerTest",
      component: () => import("@/views/RouterTest.vue"),
    },
  ],
});

export default router;
